projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
caa44aa
)
stubdom: fix select calls after CDROM ejection
author
Keir Fraser
<keir.fraser@citrix.com>
Tue, 18 Mar 2008 11:28:14 +0000
(11:28 +0000)
committer
Keir Fraser
<keir.fraser@citrix.com>
Tue, 18 Mar 2008 11:28:14 +0000
(11:28 +0000)
by calling qemu_set_fd_handler before closing the fd.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
tools/ioemu/block-vbd.c
patch
|
blob
|
history
diff --git
a/tools/ioemu/block-vbd.c
b/tools/ioemu/block-vbd.c
index 937bb5e62d1497a0715435b3901df5c26efbbac7..b8ad91692e65587ddfb14ed6f7ed7f58f3cd752c 100644
(file)
--- a/
tools/ioemu/block-vbd.c
+++ b/
tools/ioemu/block-vbd.c
@@
-271,6
+271,7
@@
static void vbd_close(BlockDriverState *bs)
BDRVVbdState *s = bs->opaque;
bs->total_sectors = 0;
if (s->fd >= 0) {
+ qemu_set_fd_handler(s->fd, NULL, NULL, NULL);
close(s->fd);
s->fd = -1;
}